/**
 * 
 */
package com.mywind.entity.core;

import java.util.ArrayList;
import java.util.List;

/**
 * @author A01162
 * 
 */
public class JqGridRespEntity<T> extends JqGridQueryEntity {
	private static final long serialVersionUID = 6741740676044795822L;
	/** 查询返回结果数据 */
	private List<T> list = new ArrayList<T>();

	public JqGridRespEntity() {
	}

	public JqGridRespEntity(JqGridQueryEntity query, List<T> objList) {
		this.setPage(query.getPage());
		this.setRows(query.getRows());

		this.list = objList;
		this.setTotalCount(query.getTotalCount());
//		if (list != null) {
//			this.setTotalCount(list.size());
//		} else {
//			this.setTotalCount(0);
//		}
		//this.setTotalPage(getTotalPage());
	}

	/**
	 * @return the list
	 */
	public List<T> getList() {
		return list;
	}

	/**
	 * @param list
	 *            the list to set
	 */
	public void setList(List<T> list) {
		this.list = list;
	}

}
